home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / odoors41.zip / EX_HELLO.C < prev    next >
C/C++ Source or Header  |  1993-04-05  |  636b  |  18 lines

  1. /* EX_HELLO.C - Example of a trivial OpenDoors door program. Demonstrates just
  2.  *              how simple a fully functional door program can be.
  3.  */
  4.  
  5.  
  6. #include "opendoor.h"                    /* Required in any OpenDoors program */
  7.  
  8.  
  9. main()
  10.    {                                                     /* Display a message */
  11.    od_printf("Hello world! This is a very simple door program.\n\r");
  12.    od_printf("Press any key to return to the BBS!\n\r");
  13.  
  14.    od_get_key(TRUE);                          /* Wait for user to press a key */
  15.  
  16.    od_exit(10, FALSE);                                           /* Exit door */
  17.    }
  18.